package com.yxhl.zoume.common.ui.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;

import com.yxhl.zoume.R;
import com.yxhl.zoume.common.ui.activity.base.BaseActivityWithToolBar;
import com.yxhl.zoume.core.user.ui.fragment.passenger.AddPassengerFragment;

import butterknife.BindView;


public class AddPassengerActivity extends BaseActivityWithToolBar {

    private static final String TAG = "AddPassengerActivity";

    @BindView(R.id.frame_activity_add_passenger_body)
    FrameLayout frameLayout;
    private AddPassengerFragment mAddPassengerFragment;

    public static Intent getCallingIntent(Activity activity) {
        Intent intent = new Intent(activity, AddPassengerActivity.class);
        return intent;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initializeShow();
    }

    public void initializeShow() {
        mAddPassengerFragment = AddPassengerFragment.newInstance();
        addFragment(R.id.frame_activity_add_passenger_body, mAddPassengerFragment);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        overridePendingTransition(R.anim.noanimation, R.anim.right_out);
    }

    @Override
    protected void onHeaderLeftClick(View view) {
        onBackPressed();
    }

    @Override
    protected void onHeaderRightClick(View view) {
        mAddPassengerFragment.goToConfirm();
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_add_passengers;
    }

    @Override
    protected void initializeInjector() {

    }


}
